package com.shaungti;

import java.util.Scanner;

public class Seven {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数：");
        int a = sc.nextInt();
        System.out.println("请输入第二个数：");
        int b = sc.nextInt();
        System.out.println("请输入第三个数：");
        int c = sc.nextInt();

        switch (c){
        case 0:
            System.out.println(a+"+"+b+"="+(a+b));
            break;
            case 1:
                System.out.println(a+"-"+b+"="+(a-b));
                break;
                case 2:
                    System.out.println(a+"*"+b+"="+(a*b));
                    break;
            case 3:
                System.out.println(a+"/"+b+"="+(a/b));
                break;
        }
    }
}
